package com.adinall.dsp.core.db;

import java.util.HashMap;
import java.util.Map;

public class TypeMappings {

    public static final Map<String, String> java2ResultsetGetter;

    static {
        java2ResultsetGetter = new HashMap<String, String>();
        java2ResultsetGetter.put("byte", "getByte");
        java2ResultsetGetter.put("short", "getShort");
        java2ResultsetGetter.put("int", "getInt");
        java2ResultsetGetter.put("long", "getLong");
        java2ResultsetGetter.put("float", "getFloat");
        java2ResultsetGetter.put("double", "getDouble");
        java2ResultsetGetter.put("boolean", "getBoolean");
        java2ResultsetGetter.put("java.lang.Byte", "getByte");
        java2ResultsetGetter.put("java.lang.Integer", "getInt");
        java2ResultsetGetter.put("java.lang.String", "getString");
        java2ResultsetGetter.put("java.sql.Timestamp", "getTimestamp");
        java2ResultsetGetter.put("java.sql.Time", "getTime");
        java2ResultsetGetter.put("java.sql.Date", "getDate");
        java2ResultsetGetter.put("java.util.Date", "getDate");
        java2ResultsetGetter.put("[B", "getObject");
        java2ResultsetGetter.put("java.sql.Blob", "getBytes");
        java2ResultsetGetter.put("java.sql.Clob", "getClob");
        java2ResultsetGetter.put("java.math.BigDecimal", "getBigDecimal");
        java2ResultsetGetter.put("java.sql.Date", "getDate");
        java2ResultsetGetter.put("java.util.Date", "getDate");
    }
}